home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Data / Data.h < prev    next >
Text File  |  1997-06-28  |  439b  |  28 lines

  1. // Data.h
  2.  
  3. #ifndef Data_h
  4. #define Data_h
  5.  
  6. #ifndef ArrayOf_h
  7. #include "ArrayOf.h"
  8. #endif
  9.  
  10. class Data: public ArrayOf<uint8>
  11.   {
  12.     public:
  13.         Data()        {}
  14.         
  15.         Data( ArrayOf<uint8> array )
  16.           : ArrayOf<uint8>( array )
  17.           {}
  18.         
  19.         Data( void *theStart, uint32 theLength )
  20.           : ArrayOf<uint8>( static_cast<uint8 *>(theStart), theLength )
  21.           {}
  22.         
  23.         uint32 operator<<( ConstArrayOf<uint8> r ) const
  24.           { return BitwiseCopy( r ); }
  25.   };
  26.  
  27. #endif
  28.